<layout name="Layout/layout" />

<div id="wrapper">
    <div class="col-md-2">
        <include file="Layout:left-menubar" />
    </div>
    <div class="col-md-10">
        <!-- Page Content -->
        <div id="page-content-wrapper">
            <div class="container-fluid">
                <div class="row">
                    <div class="table-responsive ">
                        <table class="table table-bordered table-hover">
                            <tr>
                                <th>项目ID</th>
                                <th>考点</th>
                                <th>报考专业</th>
                                <th>报名时间</th>
                                <th>最后操作时间</th>
                                <th>是否缴费</th>
                                <th>操作</th>
                            </tr>
                            {:trace($enrolllist)}
                            <foreach name="info" item="v">
                                <tr>
                                    <td>{$v['id']}</td>
                                    <td>{:getExamcenterName($v['examcenter'])}</td>
                                    <td>{:getMajorNames($v['major'])}</td>
                                    <td>{:formatDate($v['enrolltime'])}</td>
                                    <td>{:formatDate($v['uptime'])}</td>
                                    <td>{:ispayed($v['ispayed'])}</td>
                                    <td>

                                        <?php if(!$v['ispayed']){ ?>
                                            <button enrollid={$v['id']} type="button" class="btn btn-danger btn-delete">取消</button>
                                            <button type="button" class="btn btn-primary query">前往缴费</button>
                                            <?php }else{ ?>
                                                <p class="text-success">缴费成功</p>
                                                <?php } ?>
                                    </td>
                                </tr>
                            </foreach>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- /#page-content-wrapper -->

</div>
<!-- /#wrapper -->
